﻿
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace BBPA.API
{
    /// <summary>
    /// ExpressInfo 的摘要说明
    /// </summary>
    public class ExpressInfo : IHttpHandler
    {

        BLL.ExpressInfo bll = new BLL.ExpressInfo();
        public void ProcessRequest(HttpContext context)
        {
            MyHttpContent cont = new MyHttpContent(context);
            //读取request
            int ExpressID = cont.rqInt("ExpressID");
            //
            CallBak<List<Model.ExpressInfo>> callBak = new CallBak<List<Model.ExpressInfo>>();
            callBak.Set(bll.GetModelList("ExpressID=" + ExpressID + " "));

            context.Response.ContentType = "text/javascript";
            context.Response.Write(cont.rq("callback") + "(" + StringPlus.Object2Json4Js(callBak) + ")");
        }

        public bool IsReusable
        {
            get
            {
                return false;
            }
        }
    }
}